package com.social.model;

import java.util.Date;

public class LikeDislike {
    private int id;         // 点赞/点踩记录ID
    private int logId;      // 日志ID
    private String userId;  // 用户ID
    private int action;     // 操作类型：1=点赞，-1=点踩
    private Date createTime;// 操作时间

    public LikeDislike() {
    }

    public LikeDislike(int logId, String userId, int action) {
        this.logId = logId;
        this.userId = userId;
        this.action = action;
    }

    // Getter和Setter方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLogId() {
        return logId;
    }

    public void setLogId(int logId) {
        this.logId = logId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getAction() {
        return action;
    }

    public void setAction(int action) {
        this.action = action;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}